package com.twl.app.base.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true,dynamicUpdate = true)
@Table(name = "Loyalward")
@SequenceGenerator(name = "instance_sequence", sequenceName = "SEQ_LOYALWORD_DID", allocationSize = 1)
public class Loyalward implements Serializable{

	/**
	 * 忠诚奖
	 */
	private static final long serialVersionUID = 1L;
	
	private Integer did ;		//主键
	private String staffint ;  //员工ID
	private String stafftype ;	//员工类型（正式、派遣员工）
	private String stafftypes ;//员工类别（客服、授权、催收）
	private String entrytime ; //入职时间
	private String staffmoney ;//员工基本工资
	private Double leavebint ; //员工请事假天数（统计6个月的）
	private String amountdou ;//总金额（计算得来）
	private String datemoney ;//日期
	private String desKey;// 密钥
	
	
	
	public Loyalward() {
		super();
	}
	
	
	public Loyalward(Integer did, String staffint, String stafftype,
			String stafftypes, String entrytime, String staffmoney,
			Double leavebint, String amountdou, String datemoney) {
		super();
		this.did = did;
		this.staffint = staffint;
		this.stafftype = stafftype;
		this.stafftypes = stafftypes;
		this.entrytime = entrytime;
		this.staffmoney = staffmoney;
		this.leavebint = leavebint;
		this.amountdou = amountdou;
		this.datemoney = datemoney;
	}


	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator="instance_sequence")
	public Integer getDid() {
		return did;
	}
	public void setDid(Integer did) {
		this.did = did;
	}
	@Column(name = "staffint")
	public String getStaffint() {
		return staffint;
	}
	public void setStaffint(String staffint) {
		this.staffint = staffint;
	}
	@Column(name = "stafftype")
	public String getStafftype() {
		return stafftype;
	}
	public void setStafftype(String stafftype) {
		this.stafftype = stafftype;
	}
	@Column(name = "stafftypes")
	public String getStafftypes() {
		return stafftypes;
	}
	public void setStafftypes(String stafftypes) {
		this.stafftypes = stafftypes;
	}
	@Column(name = "entrytime")
	public String getEntrytime() {
		return entrytime;
	}
	public void setEntrytime(String entrytime) {
		this.entrytime = entrytime;
	}
	@Column(name = "staffmoney")
	public String getStaffmoney() {
		return staffmoney;
	}
	public void setStaffmoney(String staffmoney) {
		this.staffmoney = staffmoney;
	}
	@Column(name = "leavebint")
	public Double getLeavebint() {
		return leavebint;
	}
	public void setLeavebint(Double leavebint) {
		this.leavebint = leavebint;
	}
	@Column(name = "amountdou")
	public String getAmountdou() {
		return amountdou;
	}
	public void setAmountdou(String amountdou) {
		this.amountdou = amountdou;
	}
	@Column(name = "datemoney")
	public String getDatemoney() {
		return datemoney;
	}
	public void setDatemoney(String datemoney) {
		this.datemoney = datemoney;
	}
	
	@Column(name = "DES_KEY" )
	public String getDesKey() {
		return desKey;
	}

	public void setDesKey(String desKey) {
		this.desKey = desKey;
	}
	
	@Override
	public String toString() {
		return "Loyalward [staffint=" + staffint + ", stafftype=" + stafftype
				+ ", stafftypes=" + stafftypes + ", entrytime=" + entrytime
				+ ", staffmoney=" + staffmoney + ", leavebint=" + leavebint
				+ ", amountdou=" + amountdou + ", datemoney=" + datemoney + "]";
	}
	
	
}
